﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using 基于WPF的电缆采样数据分析系统.Models.Enums;
using 基于WPF的电缆采样数据分析系统.Models.Task;

namespace 基于WPF的电缆采样数据分析系统.Models.Task
{
    /// <summary>
    /// 任务数据信息
    /// </summary>
    public class TaskDataInfo : BindableBase
    {
        /// <summary>
        /// 任务Id
        /// </summary>
        public int Tid { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string DescriptionInfo { get; set; }
        /// <summary>
        /// 通道
        /// </summary>
        public PassageType ChannelConfig { get; set; }
        /// <summary>
        /// 水平参数
        /// </summary>
        public ChannelArgument HorizontalArgument { get; set; }
        /// <summary>
        /// 垂直参数
        /// </summary>
        public ChannelArgument VerticalArgument { get; set; }
        /// <summary>
        /// 创建用户
        /// </summary>
        public int CreateUser { get; set; }
        /// <summary>
        /// 修改用户
        /// </summary>
        public int UpdateUser { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }
        /// <summary>
        /// X轴平移
        /// </summary>
        public float XAxisTranslation { get; set; }
        /// <summary>
        /// Y轴平移
        /// </summary>
        public float YAxisTranslation { get; set; }

        /// <summary>
        /// 用于复选框绑定
        /// </summary>
        private bool _IsSelected;

        /// <summary>
        /// 用于复选框绑定
        /// </summary>
        public bool IsSelected
        {
            get { return _IsSelected; }
            set { 
                _IsSelected = value;
                RaisePropertyChanged();
            }
        }

    }
}
